package com.example.day0525.news

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.NewsBeanItem
import com.example.day0525.R

class NewAdapter:BaseQuickAdapter<NewsBeanItem,BaseViewHolder>(R.layout.item_new) {
    override fun convert(helper: BaseViewHolder, item: NewsBeanItem) {
        helper.setText(R.id.news_title,item.title)
        helper.setText(R.id.news_content,item.content)
        helper.setText(R.id.news_time,item.publishDate)
    }
}